package com.cuit.freshmanMS.query;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class AcademyQuery {

    private Integer currentPage=1;
    private Integer pageSize=10;
    private String placeK;
    private Date timeBegin;
    private Date timeEnd;
    private String anameK;


    public Integer getStart(){
        return (this.currentPage-1)*this.pageSize;
    }
}

